package com.xiaoge.demo.pojo;

import com.xiaoge.demo.pojo.base.BasePoJoWithOutId;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import lombok.Data;

/**
 * 作者：guoyzh
 * 时间：2018/12/28 9:07
 * 功能：
 */
@Data
@Entity
@Table(name = "retail_list")
public class RetailList extends BasePoJoWithOutId {
    @Id
    @GeneratedValue(generator = "custom-id")
    @GenericGenerator(name = "custom-id", strategy = "com.xiaoge.demo.pojo.id_generator.DateIDGenerator")
    @Column(name = "id")
    private String id = "";

    @Column
    private String name = "";
}
